import java.util.ArrayList;
import java.util.List;

import bean.Product;


public class No10 {
	private static List<Product> productList = new ArrayList<Product>();
	private static final Double TAX_RATE = new Double(7)/100;
	
	private static List<Product> initProductList(){
		for (int i = 0; i < 5; i++) {
			Product product = new Product();
			product.setProductName("Item 00" + (i+1));
			product.setProductPrice(new Double((i+1)+"00"));
			product.setStatus("Active");
			System.out.println(product);
			
			productList.add(product);
		}
		
		return productList;
	}
	
	public static void main(String[] args) {
		initProductList();
		
		Double taxAmount = new Double(0);
		for (Product product : productList) {
			taxAmount = product.getProductPrice() * (TAX_RATE);
			product.setTax(taxAmount);
		}
		
		for (int i = 0; i < productList.size(); i++) {
			System.out.println(productList.get(i));
		}
	}
}
